package com.education.common.exception;

import com.education.common.utils.ResultCode;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * 系统业务异常类
 * @author sj
 */
@Getter
@Setter
public class BusinessException extends RuntimeException{
    private ResultCode resultCode;
    public BusinessException(ResultCode resultCode){
        this.resultCode=resultCode;
    }
    public BusinessException(String message){
        super(message);
    }
    public BusinessException(Throwable throwable){
        super(throwable);
    }
    public BusinessException(String message,Throwable throwable){
        super(message,throwable);
    }
}
